<?php
include("include/config.inc.php");
$contractArrayList = array();
$n=0;
$userId = isset($_REQUEST['userId']) ? $_REQUEST['userId'] : 0;
$selectprocessList = "SELECT invoiceId,invoiceNo
	                           FROM invoice
	                        WHERE userId = ".$userId;
$selectcontractListRes = mysql_query($selectprocessList);
while($contractListRow = mysql_fetch_array($selectcontractListRes))
{
	$contractArrayList['invoiceId'][$n] = $contractListRow['invoiceId'];
	$contractArrayList['invoiceNo'][$n] = $contractListRow['invoiceNo'];
	$n++;
}
$smarty->assign("contractArrayList",$contractArrayList);
$smarty->display("getStageOfContract.tpl");
?>